<template>
	<view style="margin: 40rpx;">
		<view class="header">
			<uni-search-bar placeholder="搜索标题、申请单号"
			radius="100"></uni-search-bar>
		</view>
		
		<view class="body">
			<view class="item" v-for="item in data" :key="item.name">
				<view class="line1">
					<span class="name">{{item.name}}</span>
					<span class="money">￥{{item.money}}</span>
				</view>
				<view class="line2">
					<span class="type">{{item.type}}</span>
					<span class="money2">申请金额</span>
				</view>
			</view>
		</view>
		<view class="footer">
			查看已完成申请事项<icon-svg icon-class="icon-test7" />
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				data:[{
					name:'测试123',
					money:'803.00',
					type:'申请单2020'
				},{
					name:'12',
					money:'12.00',
					type:'申请单2020'
				},{
					name:'34',
					money:'1234.00',
					type:'申请单2020'
				},{
					name:'345',
					money:'100.00',
					type:'报销单2020'
				}]
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	page{
		background-color: white;
	}
	.body{
		margin-top: 45rpx;
	}
	.item{
		padding-bottom:25rpx;
		border-bottom: 0.5rpx solid #A7A7A7;
		margin-bottom: 30rpx;
	}
	.line1{
		margin-bottom: 15rpx;
	}
	.line2{
	}
	.name{
		font-size: 35rpx;
		font-weight: 400;
		color:$uni-text-color ;
	}
	.type{
		font-size:30rpx;
		font-weight: 400;
		color: $uni-text-color-grey;
	}
	.money{
		float: right;
		font-size:35rpx;
		color:$uni-text-color ;
	}
	.money2{
		float: right;
		font-weight: 400;
		color: $uni-text-color-grey;
	}
	.footer{
		position: absolute;
		width: 100%;
		padding-top: 40rpx;
		height: 150rpx;
		border-top: 1rpx solid $uni-text-color-grey;
		text-align: center;
		bottom: 0;
		color:$uni-text-color-grey;
	}
</style>
